<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <AssemblyName>Microsoft.Interop.LibraryImportGenerator</AssemblyName>
    <TargetFramework>netstandard2.0</TargetFramework>
    <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
    <RootNamespace>Microsoft.Interop</RootNamespace>
    <IsRoslynComponent>true</IsRoslynComponent>
    <!-- Disable RS2008: Enable analyzer release tracking
         Diagnostics in runtime use a different mechanism (docs/project/list-of-diagnostics.md) -->
    <NoWarn>RS2008;RS1038;$(NoWarn)</NoWarn>
    <AnalyzerLanguage>cs</AnalyzerLanguage>
    <StringResourcesPath>../Common/Resources/Strings.resx</StringResourcesPath>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="$(MicrosoftCodeAnalysisVersion_LatestVS)" PrivateAssets="all" />
  </ItemGroup>

  <ItemGroup>
    <ProjectReference Include="..\Microsoft.Interop.SourceGeneration\Microsoft.Interop.SourceGeneration.csproj" />
  </ItemGroup>

  <ItemGroup>
    <Compile Include="$(CommonPath)Roslyn\DiagnosticDescriptorHelper.cs" Link="Common\Roslyn\DiagnosticDescriptorHelper.cs" />
    <Compile Include="$(CommonPath)Roslyn\GetBestTypeByMetadataName.cs" Link="Common\Roslyn\GetBestTypeByMetadataName.cs" />
    <Compile Include="..\Common\OperationExtensions.cs" Link="Common\OperationExtensions.cs" />
    <Compile Include="..\Common\ConvertToSourceGeneratedInteropFixer.cs" Link="Common\ConvertToSourceGeneratedInteropFixer.cs" />
    <Compile Include="..\Common\FixAllContextExtensions.cs" Link="Common\FixAllContextExtensions.cs" />
  </ItemGroup>

</Project>
